Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.keys

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.keys

The modern build of lodash’s `_.keys` as a module.

  • 3.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5M
decreased by-35.08%
Maintainers
5
Weekly downloads
 
Created

What is lodash.keys?

The lodash.keys package is a utility library that provides a method to retrieve the keys of an object. It is part of the larger Lodash library, which offers a wide range of utility functions for common programming tasks.

What are lodash.keys's main functionalities?

Retrieve Object Keys

This feature allows you to retrieve the keys of an object. The code sample demonstrates how to use lodash.keys to get the keys of an object and print them to the console.

const _ = require('lodash.keys');
const obj = { a: 1, b: 2, c: 3 };
const keys = _.keys(obj);
console.log(keys); // ['a', 'b', 'c']

Other packages similar to lodash.keys

Keywords

FAQs

Package last updated on 30 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc